package com.share.mapper.learn;

import com.share.domain.learn.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author caifan
 * 2018/6/24
 */
@Mapper
public interface UserMapper {
    /**
     * 根据用户id查询用户
     */
    @Select("select * from user where id = #{id}")
    User findUserById(Long id);

}
